package com.billing.model.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TLeave;

public interface LeaveBeanMapper {

	/**
	 * 新增请假审批业务数据
	 * @param leave
	 * @return
	 */
	public int insertTLeave(TLeave leave);
	/**
	 * 根据id获取请假信息
	 * @param id
	 * @return
	 */
	public TLeave getTLeaveById(@Param("id")int id);
	/**
	 * 根据用户id、起始和结束时间获取请假信息
	 * @param starttime
	 * @param endtime
	 * @param id
	 * @return
	 */
	public List<TLeave> getTLeaveList(@Param("starttime")long starttime,@Param("endtime")long endtime,@Param("id")int id);
	
}
